import axios from 'axios';
// import Cookies from 'js-cookie';
import request from '@/utils/request.js'

// 超级管理员-查询
export const academicWorkList = (query) => {
  return request.get('/academicWork/academicWorkList', { params: query });
}

// 超级管理员-新增
export const addUser = (data) => {
  return request.post('/totalWork/addTotalWork', data);
}


// 超级管理员-修改
export const updateUser = (data) => {
  return request.put('/totalWork/editTotalWork', data);
}

// 超级管理员-删除
export const delUser = (userIds) => {
  return request.delete('/totalWork/deleteTotalWork', { data: userIds });
}


//用户-查询列表
export const acaWoUserList = (query) => {
  return request.get('/userAcademicWork/acaWoUserList',{ params: query })
}

// 用户 - 新增
export const addUserAcaWo = (data) => {
  return request.post('/userAcademicWork/addAcademicWork', data);
};


// 用户-修改
export const updateUserAcaWo = (data) => {
  return request.put('/userAcademicWork/updateAcademicWork', data);
};
